package com.orange.score.model.index;

import android.util.Log;

public class OupeiOdds extends Odds
{
  String awayWinChupei;
  String awayWinInstantOdds;
  String drawInstantOdds;
  String drawWinChupei;
  String homeWinChupei;
  String homeWinInstantOdds;

  public OupeiOdds(String paramString1, String paramString2, String paramString3, String paramString4, String paramString5, String paramString6, String paramString7, String paramString8, String paramString9)
  {
    super(paramString1, paramString2, paramString3);
    this.homeWinChupei = paramString4;
    this.drawWinChupei = paramString5;
    this.awayWinChupei = paramString6;
    this.homeWinInstantOdds = paramString7;
    this.drawInstantOdds = paramString8;
    this.awayWinInstantOdds = paramString9;
  }

  public String getAwayWinChupei()
  {
    return this.awayWinChupei;
  }

  public String getAwayWinInstantOdds()
  {
    return this.awayWinInstantOdds;
  }

  public String getDrawInstantOdds()
  {
    return this.drawInstantOdds;
  }

  public String getDrawWinChupei()
  {
    return this.drawWinChupei;
  }

  public String getHomeWinChupei()
  {
    return this.homeWinChupei;
  }

  public String getHomeWinInstantOdds()
  {
    return this.homeWinInstantOdds;
  }

  public void setAwayWinChupei(String paramString)
  {
    this.awayWinChupei = paramString;
  }

  public void setAwayWinInstantOdds(String paramString)
  {
    this.awayWinInstantOdds = paramString;
  }

  public void setDrawInstantOdds(String paramString)
  {
    this.drawInstantOdds = paramString;
  }

  public void setDrawWinChupei(String paramString)
  {
    this.drawWinChupei = paramString;
  }

  public void setHomeWinChupei(String paramString)
  {
    this.homeWinChupei = paramString;
  }

  public void setHomeWinInstantOdds(String paramString)
  {
    this.homeWinInstantOdds = paramString;
  }

  public String toString()
  {
    return "OupeiOdds [matchId=" + this.matchId + ", companyId=" + this.companyId + ", oddsId=" + this.oddsId + ", homeWinChupei=" + this.homeWinChupei + ", drawWinChupei=" + this.drawWinChupei + ", awayWinChupei=" + this.awayWinChupei + ", homeWinInstantOdds=" + this.homeWinInstantOdds + ", drawInstantOdds=" + this.drawInstantOdds + ", awayWinInstantOdds=" + this.awayWinInstantOdds + "]";
  }

  public void updateOdds(String paramString1, String paramString2, String paramString3)
  {
    if (Double.parseDouble(paramString1) > Double.parseDouble(this.homeWinInstantOdds))
    {
      this.homeTeamOddsFlag = 1;
      if (Double.parseDouble(paramString2) <= Double.parseDouble(this.awayWinInstantOdds))
        break label209;
      this.awayTeamOddsFlag = 1;
      if (Double.parseDouble(paramString3) <= Double.parseDouble(this.drawInstantOdds))
        break label241;
      this.pankouFlag = 1;
    }
    while (true)
    {
      while (true)
      {
        while (true)
        {
          while (true)
          {
            while (true)
            {
              while (true)
              {
                this.homeWinInstantOdds = paramString1;
                this.awayWinInstantOdds = paramString2;
                this.drawInstantOdds = paramString3;
                if ((this.homeTeamOddsFlag != 0) || (this.awayTeamOddsFlag != 0) || (this.pankouFlag != 0))
                {
                  Log.d("OupeiOdds Update", "matchId = " + this.matchId + ",companyId= " + this.companyId + ",homeWinInstantOdds = " + this.homeWinInstantOdds + ",drawInstantOdds = " + this.drawInstantOdds + ",awayWinInstantOdds = " + this.awayWinInstantOdds);
                  this.lastModifyTime = System.currentTimeMillis();
                }
                return;
                if (Double.parseDouble(paramString1) >= Double.parseDouble(this.homeWinInstantOdds))
                  break;
                this.homeTeamOddsFlag = -1;
              }
              this.homeTeamOddsFlag = 0;
            }
            label209: if (Double.parseDouble(paramString2) >= Double.parseDouble(this.awayWinInstantOdds))
              break;
            this.awayTeamOddsFlag = -1;
          }
          this.awayTeamOddsFlag = 0;
        }
        label241: if (Double.parseDouble(paramString3) >= Double.parseDouble(this.drawInstantOdds))
          break;
        this.pankouFlag = -1;
      }
      this.pankouFlag = 0;
    }
  }
}